<div id="Posts" class="container">
  <?php if ( have_posts() ) : ?>
    <?php while ( have_posts() ) : the_post(); ?>
      <?php get_template_part( 'content', get_post_format() ); ?>
    <?php endwhile; ?>
  <?php endif; ?>
</div>
<input id="nextPostsPageLink" type="hidden" value="<?php echo get_next_posts_page_link(); ?>"/>